public class method_Test {
    public static void demo1(){
        //100以内奇偶和
        int sumJ = 0;
        int sumO = 0;
        for(int k=1;k<=100;k++){
            if(k%2==1){//奇数
                sumJ+=k;
            }else{
                sumO+=k;
            }
        }
        System.out.println(sumJ);
        System.out.println(sumO);
    }
    public static int add(int a,int b){
        return a+b;
    }
    public static void main(String[] args){
        demo1();
        System.out.println(add(3,5));
    }
}
